package com.wang.controller;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Zjx
 */
@RestController
public class HelloWorldController {
    private Logger log = LogManager.getLogger();

    /**
     * controller访问
     * @return
     */
    @RequestMapping("/test01")
    public String test01(int a){
        log.info("==初始化==a:{}", a);
        return "test-01";
    }
}
